<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<html>
			<head>
				<meta charset="utf-8">
				<title></title>
		
				<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
			</head>
			<body>
				<div id="app">
					<!-- v-on:click 给按钮绑定事件处理 -->
					
					{{count}}<button v-on:click="increase">+</button>
				</div>
				
				<script>
					var app = Vue.createApp({
						data() {
							return {
								message: "Hello Vue!",
								count:1
							}
						},
						methods:{
							increase:function(){
								this.count++;
							}
						}
					});
					var vm = app.mount("#app")
				</script>
		
				练习: 添加一个按钮，减少数字
		
		
			</body>
		</html>
	</body>
</html>